package com.xiang.annotation;


import java.util.ArrayList;

//什么是注解
public class Test01 extends Object{


    //重写的注解
    @Override
    public String toString() {
        return super.toString();
    }

    //Deprecated
    @Deprecated
    public static void test(){
        System.out.println("Deprecated");
    }

    //镇压警告
    @SuppressWarnings("all")
    public void test02(){
        ArrayList arrayList = new ArrayList();
    }

    public static void main(String[] args) {
        test();
    }
}
